<?php
$sch = new Swoole\Coroutine\Scheduler;
$sch->add(function () use ($sch) {
    $redis = new Swoole\Coroutine\Redis();
    $redis->connect('127.0.0.1', 6379);
    $redis->set("age",11);
    echo "===age===:".$redis->get("age").PHP_EOL;
    $redis->lpush("user","jale");
    echo "=====lpush====".$redis->lPop("user").PHP_EOL;
});
$sch->start();